package com.atde._04_structural_design_patterns.adapter.objectadapter;



/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.adapter.objectadapter
 * @Author: Del
 * @CreateTime: 2025-06-18  23:09
 * @Description: 适配器模式 --- 对象适配器 --- 测试类
 * @Version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("==== 对象适配器 ====");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
